package com.example.machine.mapper;

import com.example.machine.model.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Home-pc
 * Date: 2024-02-01
 * Time: 16:53
 */
@Mapper
public interface UserInfoMapper {

    //定义和数据库交互的方法出来

    //根据用户名查找用户信息
    @Select("select * from user_info where user_name=#{name}")
    UserInfo selectUserByName(String name);
}
